﻿#region System
using System;
using System.Collections.Generic;
using System.IO;
using CF.Framework.Engine.Drawing;
using CF.Framework.Engine.Misc;
using CF.Framework.Engine.Screens;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
#endregion


namespace CF.Framework.Engine.Controls
{
	public class ButtonPad : Control
	{
		private Button[][] map;
		private int columns;
		private int rows;
		private int currentColumn = 0;
		private int currentRow = 0;
		private Button selectedButton;

		public ButtonPad(int columns, int rows)
		{
			this.map = new Button[rows][];
			for (int pos = 0; pos < rows; pos++)
			{
				map[pos] = new Button[columns];
			}
			
			this.columns = columns;
			this.rows = rows;
		}

		public void SetButton(Button button, int x, int y)
		{
			this.map[y][x] = button;
		}

		protected override void OnHandleInput(InputState input)
		{
			base.OnHandleInput(input);

			if(input.IsNewKeyPress(Player1.Left))
			{
				
			}
		}
	}
}
